<extend name="template/base_index" />


<block name="area_header">

    <link rel="stylesheet" type="text/css" media="all" href="__CDN__/jquery-datetimepicker/jquery.datetimepicker.css">
    <script type="text/javascript" src="__CDN__/jquery-datetimepicker/jquery.datetimepicker.js"></script>
    <script type="text/javascript" src="__CDN__/jquery-validation/1.13.1/jquery.validate.min.js"></script>
    <script type="text/javascript" src="__CDN__/jquery-validation/1.13.1/localization/messages_zh.min.js"></script>

    <script type="text/javascript" charset="utf-8" src="__UPLOAD__/ueditor/1.4.3/ueditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="__UPLOAD__/ueditor/1.4.3/ueditor.all.min.js"> </script>
    <link type="text/css" rel="stylesheet" href="__CDN__/comp/wxuploader.css?v=__APP_VERSION__" />
    <link type="text/css" rel="stylesheet" href="__CDN__/jquery-uploadify/3.2.1/uploadify.css" />
    <script type="text/javascript" src="__CDN__/jquery-uploadify/3.2.1/jquery.uploadify.min.js"></script>

</block>

<block name="area_body">
    {:W('Menus/topbar')}
    <div class="admin-main container-fluid">
        {:W('Menus/left')}
        <div class="admin-main-content">
            {:W('Menus/breadcrumb')}
            <!-- 带验证 form -->
            <form class="form-horizontal well validateForm">
                <fieldset>
                    <legend>
                    </legend>
                    <input type="hidden" name="id" value="{$id}">
                    <div class="form-group">
                        <label  class="col-md-2 col-lg-2 control-label">VIP等级名称</label>
                        <div class="col-md-10 col-lg-10">
                            <input type="text" class="required form-control input-short" name="name"  placeholder="{:L('PLACEHOLDER_TITLE')}" value="{$name}">
                            <div class="help-block">(请输入VIP等级名称)</div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label  class="col-md-2 col-lg-2 control-label">入股下限</label>
                        <div class="col-md-10 col-lg-10">
                            <input type="text" class="required form-control input-short" name="lower_limit"  placeholder="{:L('PLACEHOLDER_TITLE')}" value="{$lower_limit}">
                            <div class="help-block">(入股下限)</div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label  class="col-md-2 col-lg-2 control-label">入股上限</label>
                        <div class="col-md-10 col-lg-10">
                            <input type="text" class="required form-control input-short" name="upper_limit"  placeholder="{:L('PLACEHOLDER_TITLE')}" value="{$upper_limit}">
                            <div class="help-block">(入股上限)</div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label  class="col-md-2 col-lg-2 control-label">折扣</label>
                        <div class="col-md-10 col-lg-10">
                            <input type="text" class="required form-control input-short" name="discount" placeholder="{:L('PLACEHOLDER_TITLE')}" value="{$discount}">
                            <div class="help-block">折扣</div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label  class="col-md-2 col-lg-2 control-label">邀请好友成为黄金会员的次数  </label>
                        <div class="col-md-10 col-lg-10">
                            <input type="text" class="required form-control input-short" name="become_gold" placeholder="{:L('PLACEHOLDER_TITLE')}" value="{$become_gold}">
                            <div class="help-block">(0表示没有获得积分的权限)</div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label  class="col-md-2 col-lg-2 control-label">邀请好友成为白金会员的次数</label>
                        <div class="col-md-10 col-lg-10">
                            <input type="text" class="required form-control input-short" name="become_platina"  placeholder="{:L('PLACEHOLDER_TITLE')}" value="{$become_platina}">
                            <div class="help-block">(0表示没有获得积分的权限)</div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label  class="col-md-2 col-lg-2 control-label">vip奖励</label>
                        <div class="col-md-10 col-lg-10">
                            <input type="text" class="required form-control input-short" name="vip_reward"  placeholder="{:L('PLACEHOLDER_TITLE')}" value="{$vip_reward}">
                            <div class="help-block">(0.05表示5%以此类推)</div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label  class="col-md-2 col-lg-2 control-label">消费奖励</label>
                        <div class="col-md-10 col-lg-10">
                            <input type="text" class="required form-control input-short" name="consume_reward"  placeholder="{:L('PLACEHOLDER_TITLE')}" value="{$consume_reward}">
                            <div class="help-block">(0.05表示5%以此类推)</div>
                        </div>
                    </div>

                    <div class="form-group">
                        <label  class="col-md-2 col-lg-2 control-label">一次性成为该等级的会员奖励的多少钱的礼物</label>
                        <div class="col-md-10 col-lg-10">
                            <input type="text" class="required form-control input-short" name="reward"  placeholder="{:L('PLACEHOLDER_TITLE')}" value="{$reward}">
                            <div class="help-block">(2000元)</div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label  class="col-md-2 col-lg-2 control-label">名额上限</label>
                        <div class="col-md-10 col-lg-10">
                            <input type="text" class="required form-control input-short" name="quota_upper"  placeholder="{:L('PLACEHOLDER_TITLE')}" value="{$quota_upper}">
                            <div class="help-block">名额上限</div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label  class="col-md-2 col-lg-2 control-label">名额剩余</label>
                        <div class="col-md-10 col-lg-10">
                            <input type="text" class="required form-control input-short" name="quota_overplus"  placeholder="{:L('PLACEHOLDER_TITLE')}" value="{$quota_overplus}">
                            <div class="help-block">名额剩余</div>
                        </div>
                    </div>
                   <!-- <div class="form-group">
                        <label  class="col-md-2 col-lg-2 control-label">每月推荐名额</label>
                        <div class="col-md-10 col-lg-10">
                            <input type="text" class="required form-control input-short" name="momth_recommend"  placeholder="{:L('PLACEHOLDER_TITLE')}" value="{$momth_recommend}">
                            <div class="help-block">每月推荐名额</div>
                        </div>
                    </div>-->
                   <!-- <div class="form-group">
                        <label  class="col-md-2 col-lg-2 control-label">每年推荐名额</label>
                        <div class="col-md-10 col-lg-10">
                            <input type="text" class="required form-control input-short" name="year_recommend"  placeholder="{:L('PLACEHOLDER_TITLE')}" value="{$year_recommend}">
                            <div class="help-block">每年推荐名额</div>
                        </div>
                    </div>-->

                    <div class="form-group">
                        <label  class="col-md-2 col-lg-2 control-label">&nbsp;</label>
                        <div class="col-lg-10 col-md-10">
                            <a target-form="validateForm" onclick="return getData();" class="ajax-post btn btn-primary" href="{:U('Admin/VipGrade/edit_angelvip')}" autofocus="autofocus"><i class="fa fa-save"></i> {:L('BTN_SAVE')}</a>
                            <a class="btn btn-default" href="{:U('Admin/VipGrade/angel_viplist')}"><i class="fa fa-reply"></i>返回</a>
                        </div>
                    </div>
                </fieldset>
            </form>
            <!-- form -->

            <include file="template/wxpicture" />
        </div>
        <!-- END admin-main-content -->
    </div>
    <!-- END admin-main-->
</block>

<block name="area_footer">

    <script type="text/javascript">

        function getData(){
            $("#main_img").val($(".wxuploaderimg img").attr("src"));
        }

        $(function(){
            wxuploadimg.init({cont:".wxuploaderimg"});

            $('#starttime').datetimepicker({
                lang: 'ch'
            });
            $('#endtime').datetimepicker({
                lang: 'ch'
            });
        })
    </script>
</block>